home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2000 #4
/
Amiga Plus CD - 2000 - No. 4.iso
/
Tools
/
Text
/
HTML
/
HTMLEXT
/
GUI
/
menu.action
< prev
next >
Wrap
Text File
|
2000-04-19
|
4KB
|
166 lines
G4C
; $VER: menu.action Rev.028 by Juan Manuel Wehrli 1999 - 2000
WINBIG -1 -1 120 275 "Bearbeiten"
WinType 00001000
WinOnMouse 100 265
WinBackGround IMAGE BG 0
Winout "NIL:"
VarPath HTMLEXT
xOnLoad
SetGad #This 101 HIDE
SetGad #This 102 HIDE
SetGad #This 103 HIDE
ifexists file "HTMLEXT:c/imageMap/ImageMap"
SetGad #This 104 ON
else
SetGad #This 104 OFF
endif
GuiOpen #This
xOnRMB
SetGad #This 1 HIDE
SetGad #This 101 SHOW
SetGad #This 102 SHOW
SetGad #This 103 SHOW
PartReDraw #This 0 75 120 190
XButton 0 0 120 15 "Durchsuchen"
GadFont xHelvetica.font 11 000
GuiClose #This
GuiLoad "HTMLEXT:gui/func.mfind"
GuiQuit #This
XButton 0 15 120 15 "Ersetzen"
GadFont xHelvetica.font 11 000
GuiClose #This
GuiLoad "HTMLEXT:gui/func.mreplace"
GuiQuit #This
XButton 0 30 120 15 "ImageMap"
GadFont xHelvetica.font 11 000
GadID 104
GuiClose #This
LVUSE #This 3
LVUSE "HTMLEXT" 3
LVMulti First
while $$lv.line > ""
Joinfile $$lv.dir $$lv.rec gfxfile
Update "infobar" 1 "Lade $gfxfile in das ImageMap Programm ..."
RUN 'HTMLEXT:c/ImageMap/ImageMap $gfxfile'
Update "infobar" 1 ""
LVMulti OFF
LVMulti Show
LVMulti First
EndWhile
GuiQuit #This
XButton 0 45 120 15 "Image TAG einfügen"
GadFont xHelvetica.font 11 000
GuiClose #This
LVUSE #This 3
LVUSE "HTMLEXT" 3
LVMulti First
while $$lv.line > ""
Update "infobar" 1 "Lese Infos zu $lvdir ein ..."
Joinfile $$lv.dir $$lv.rec file
CLI 'HTMLEXT:c/picsize "$file" FORMAT="%w" >env:.htmlext.tmp'
CLI 'HTMLEXT:c/picsize "$file" FORMAT="%h" >env:.htmlext.tmp1'
CLI 'HTMLEXT:c/picsize "$file" FORMAT="Size %s bytes" >env:.htmlext.tmp2'
SetVar htmlname $file
RepVar htmlname $*SITEDIR "" CI
SetVar imgtag '<IMG SRC="$htmlname"'
AppVar imgtag ' WIDTH="$.htmlext.tmp"'
AppVar imgtag ' HEIGHT="$.htmlext.tmp1" BORDER="0"'
AppVar imgtag ' ALT="$.htmlext.tmp2">'
SetVar .htmlext.tmp $imgtag
cli 'rx $*EDITOR INSERT env:.htmlext.tmp'
LVMulti OFF
LVMulti Show
LVMulti First
EndWhile
Update "infobar" 1 "Fertig!"
GuiQuit #This
XButton 0 60 120 15 "HTML->Grafik erzeugen"
GadFont xHelvetica.font 11 000
GuiClose #This
if $*BROWSER == "HTMLEXT:mod/Browser/aweb.mod"
LVUSE #This 3
LVUSE "HTMLEXT" 3
LVMulti First
while $$lv.line > ""
Update "infobar" 1 "Erzeuge Grafik von der $lvdir Web Seite ..."
CLI 'rx $*BROWSER MKHTMLPIC $lvdir'
SetVar nfile $lvdir
AppVar nfile ".iff"
CLI 'copy t:htmlext/tmp.image.pic to $nfile'
LVMulti OFF
LVMulti Show
LVMulti First
EndWhile
Update "infobar" 1 "Fertig!"
else
Update "infobar" 1 "HTML nach Grafik funktioniert nur, wenn AWeb als Browser eingestellt wurde!"
endif
GuiQuit #This
XLISTVIEW 0 75 120 185 "" actiondb "HTMLEXT:Settings/Action.prefs" 0 TXT
gadid 1
gadfont sgiscreen.font 13 000
GuiClose #this
lvuse #This 1
SetVar befehl $%Befehl
lvuse HTMLEXT 3
LVMulti First
while $$lv.line > ""
JoinFile $$lv.dir $$lv.rec file
CLI '$befehl $file'
LVMulti OFF
LVMulti Show
LVMulti First
endwhile
GuiQuit #This
XLISTVIEW 0 75 120 170 "" actiondb "HTMLEXT:Settings/Action.prefs" 0 TXT
gadid 101
gadfont sgiscreen.font 13 000
EZREQ "Was möchten Sie ...?" "_1 Bearbeiten|_2 Löschen|[_X] Abbrechen" func
if $func = 1
lvuse #This 101
SetVar *VIEWERNAME $%Name
SetVar *VIEWERPRG $%Befehl
GuiLoad "HTMLEXT:gui/func.action"
elseif $func = 2
lvuse #This 101
lvdel -1
lvsort %Name
lvsave "HTMLEXT:settings/Action.prefs"
endif
XButton 0 245 50 15 "Neu"
GadFont xHelvetica.font 11 000
GadID 103
GuiLoad "HTMLEXT:gui/func.action.n"
XButton 50 245 70 15 "Speichern"
GadFont xHelvetica.font 11 000
GadID 102
SetGad #This 1 Show
SetGad #This 101 HIDE
SetGad #This 102 HIDE
SetGad #This 103 HIDE
lvuse #This 101
lvsave "HTMLEXT:settings/Action.prefs"
lvuse #This 1
lvchange "HTMLEXT:Settings/Action.prefs"
PartRedraw #This 0 75 120 320
;=== Abbruch Button
XButton 0 260 120 15 "Abbrechen [X]"
GadFont xHelvetica.font 11 010
GadKey "q"
GuiQuit #This